<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getTechCrunchData</title>
<usergroup>0</usergroup>
<usergroup_edit>30</usergroup_edit>
<menuaktiv>1</menuaktiv>   
<overwrite>1</overwrite>  
<title_active>1</title_active>  
<parent_url>/techcrunch</parent_url> 
<url>/techcrunch/crawler</url>    
<template>script.html</template> 
</head>
<body>
<?php
  
  

  
  
//$url = "http://feeds.feedburner.com/TechCrunch";  
//$url = "http://www.tagesanzeiger.ch/rss_ticker.html"; 
     
     
foreach (data::getTable("techcrunch_channel") as $channel) {     
     
     
     foreach (rss_feed::getRssFeed($channel['rss_url']) as $item) {
         
         $data = array();
         $data['channel'] = $channel['channel'];     
         $data['_techcrunch_channel'] = $channel['id'];     
         $data['title'] = $item['title'];
         $data['text'] = $item['text'];    
         $data['url'] = $item['url'];
         $data['_time'] = "";
         
         db::saveData("techcrunch", $data);
         
         //print_r($item);
         
         /*echo $item['title']."<br>";
         echo $item['url']."<br>"; 
         echo $item['mp3']."<br>"; 
         
         
         
         echo $item['text']."<br><br><br>";  */  
         
         
         
     } 
   }   

  //   http::redirect();
     
     
    
?>
</body>
</html>